package run.siyuan.jdk.设计模式.装饰模式.装饰模式案例2;

/**
 * @className: Father
 * @Description: TODO 装饰模式-主要通过继承实现
 * @author: siyuan
 * @date: 2022/3/21 10:28 上午
 */
public class Father {
    public static void main(String[] args) {
        //把美化过的成绩单拿过来
        SchoolReport sr = new SugarFouthGradeSchoolReport();
        //看成绩单
        sr.report();
        //然后老爸，一看，很开心，就签名了
        sr.sign("老三");  //我叫小三，老爸当然叫老三
    }
}
